import { Placement, Update, Deletion, NoFlags } from './utils'

export default function createFiber(returnFiber, vnode) {
    const fiber = {
        type: vnode.type,
        key: vnode.key,
        props: vnode.props,
        child: null,
        sibling: null,
        return: returnFiber,
        index: 0,
        stateNode: null,
        flags: Placement,
        alterNate: null

        // 其中child、sibling在协调子节点时定义
    }
    return fiber
}